package com.ego.auth.service.impl;

import com.ego.auth.client.UserFeignClient;
import com.ego.auth.service.AuthService;
import com.ego.user.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AuthServiceImpl implements AuthService {

    @Resource
    private UserFeignClient userFeignClient;
    @Override
    public User checkUser(String username, String password) {
        return userFeignClient.queryUserByUP(username,password);
    }
}
